home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12515 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  4.3 KB

  1. Path: aadt.sdt.com!usenet
  2. From: Larry Baker <leb@sdt.com>
  3. Newsgroups: comp.lang.c++,comp.lang.c,comp.object,comp.software-eng
  4. Subject: Re: Portability of code & skills (Beware of "C" Hackers etc)
  5. Date: Wed, 20 Mar 1996 09:33:18 -0800
  6. Organization: SABRE Decision Technologies
  7. Message-ID: <3150415E.6396@sdt.com>
  8. References: <4ikb6kINN1is@mayne.ugrad.cs.ubc.ca> <DoI5Ao.AyJ@assip.csasyd.oz> <EJH.96Mar19163745@larry.gsfc.nasa.gov>
  9. NNTP-Posting-Host: parmail
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14. CC: larryb
  15.  
  16. someone wrote:
  17. > >...  So if you want your new language to be a success,
  18. > > then give it away for ten years, preferably with a free O.S.
  19. > > and all source code as well.  It's difficult to see many
  20. > > other reasons for widespread adoption of C and Unix.
  21.  
  22. UNIX was never free.  AT&T charged something like $50,000 (don't
  23. quote me) for a full UNIX source license to corporations in the
  24. 70's and early 80's, though they may have given it away to
  25. Universities.
  26.  
  27. The source license was fairly useless, but it allowed you to
  28. obtain (legally) a "free" copy of Berkeley 4.x UNIX, which was
  29. the de facto standard for a long, long time.  You were on
  30. your own if you found bugs in the OS - hence, the need for
  31. people that could "hack the kernel."
  32.  
  33. Then AT&T woke up, and the subsequent commercialized versions
  34. of UNIX (System V derived) became the de facto standard.  It's
  35. worth noting that Sun OS, the first really commercially
  36. widespread version of UNIX, was based on Berkeley 4.3 UNIX.
  37.  
  38. From my point of view UNIX was and is a success for simple
  39. economic reasons.  For a few 100k$ a computer maker could
  40. license an operating system to port to a new computer, and
  41. voila! new computer out the door.  Having UNIX on your (new)
  42. computer made it easy for 3rd-party software vendors to
  43. port products to your machine, making it marketable to a
  44. wide audience.
  45.  
  46. Remember that before UNIX, there was no commercially available,
  47. portable, licenseable multi-user OS that could live on vastly
  48. different computer architectures. (ok, I'm ignoring OS/9, but
  49. I think it's more of a real-time, niche-oriented OS.)
  50.  
  51. The same argument holds for the "success" of C.  At the time,
  52. the only other language that "competed" with C for the mainstream,
  53. popular (PC, workstation) programming population was Pascal,
  54. compiled BASIC, FORTRAN or PL/M.  FORTRAN was the only one
  55. with a recognizable, widely accepted standard and reasonable
  56. portability.
  57.  
  58. C was (and is) reasonably portable, relatively simple, (especially
  59. the simple K&R based compilers), cheap to implement, and low-level
  60. enough to appeal to the people having to squeeze the last cycle
  61. of performance out of early PCs and Workstations.
  62.  
  63. Low-level performance is not as much of a mainstream priority
  64. today, but it was in the 70's and 80's.  Ever programmed on
  65. a 4.77 mhz 8-bit 8088 running MS-DOS?  Every cycle counts.
  66. I remember writing assembler code to time the vertical and
  67. horizontal retrace strobes for a CGA video adapter, simply to
  68. be able to write text to the display as fast as possible without
  69. putting "snow" on the screen. And the 8088 was considered a
  70. whole lot more powerful than the 1.44 mhz 6809 and maximum 48k
  71. of memory in an Apple ][.
  72.  
  73. In  these days of 100+ mhz, 32-bit and 64-bit CPUs with highly
  74. optimzied cache memories where you can easily buy for $2000 a machine
  75. far more powerful than a $500,000 VAX 11/780, it's hard to justify
  76. the bit-twiddling that was necessary back then.
  77.  
  78. Ah, the memories.  In 1987 I was working on a VAX 11/780 with
  79. 16 megabytes of memory and a total of something like 700m of
  80. disk, which was shared by about 30 other engineers.  The thing
  81. filled up a fairly large room.  If you ran more than one big
  82. 'troff' job you could kill the machine for everyone else until
  83. it finished.
  84.  
  85. Today, for about $3,700 you can buy a *dual*processor* 133-mhz
  86. Pentium "PC" with 32 megabytes of "EDO" RAM, 512k bytes of "fast"
  87. cache memory, a 1G hard SCSI hard disk, and a highly optimized
  88. graphics adapter, monitor, and an OS.
  89.  
  90. Don't be too hard on the so-called "C-hackers" who tried to
  91. squeeze every bit of memory, every cycle of performance out
  92. of some of these older machines.  There was a time when their
  93. skills were needed.  They're simply practicing a skill that
  94. isn't all that necessary today.
  95.  
  96. Cheers,
  97.  
  98. Larry
  99. leb@sdt.com
  100.